<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: include/g3dxml/XMLIO.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_08a06df9a3e103bd7de742ab8c39910f.html">g3dxml</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">XMLIO.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_x_m_l_i_o_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">// UTF-8编码</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceg3dxml.html">g3dxml</a> {</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span> </div>
<div class="foldopen" id="foldopen00009" data-start="{" data-end="};">
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871">    9</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871">SchemaVersion</a> {</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871a1c163dc46984eec51637b0f133ba0847">   10</a></span>        <a class="code hl_enumvalue" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871a1c163dc46984eec51637b0f133ba0847">Schema_Unknown</a>,</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871acf0ba27ae674848364bbfd739f16fd05">   11</a></span>        <a class="code hl_enumvalue" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871acf0ba27ae674848364bbfd739f16fd05">Schema_1_0</a>,     </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871ae9395ae97498af120a21c6d6627d8fe5">   12</a></span>        <a class="code hl_enumvalue" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871ae9395ae97498af120a21c6d6627d8fe5">Schema_2_0</a>,     </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871a354fed69777c2a9d80a7326945eb9d25">   13</a></span>        <a class="code hl_enumvalue" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871a354fed69777c2a9d80a7326945eb9d25">Schema_2_x</a>,     </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span>    };</div>
</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#ab71d40d2b47228c7181464f6e6f69183">   15</a></span>    std::string <a class="code hl_function" href="namespaceg3dxml.html#ab71d40d2b47228c7181464f6e6f69183">SchemaVersionToString</a>(<a class="code hl_enumeration" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871">SchemaVersion</a> v);</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="namespaceg3dxml.html#aef8547a5c327df7e176ca5f711ed2bad">   16</a></span>    <a class="code hl_enumeration" href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871">SchemaVersion</a> <a class="code hl_function" href="namespaceg3dxml.html#aef8547a5c327df7e176ca5f711ed2bad">StringToSchemaVersion</a>(<span class="keyword">const</span> std::string&amp; s);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="foldopen" id="foldopen00018" data-start="{" data-end="};">
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html">   18</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classg3dxml_1_1_x_m_l_i_o.html">XMLIO</a> {</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a2aa9d1d66c6d34a09487e3858411b8b6">   20</a></span>        <a class="code hl_function" href="classg3dxml_1_1_x_m_l_i_o.html#a2aa9d1d66c6d34a09487e3858411b8b6">XMLIO</a>();</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a54dedd449b82b119b0ac5a0e9b63df79">   21</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classg3dxml_1_1_x_m_l_i_o.html#a54dedd449b82b119b0ac5a0e9b63df79">~XMLIO</a>();</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a90ebdf7ef7cec9abf1c1896f3fdd90d5">   23</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classg3dxml_1_1_x_m_l_i_o.html#a90ebdf7ef7cec9abf1c1896f3fdd90d5">IsOK</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a8b53bc63193205d2697d950a02ba8ad4">   24</a></span>        std::string <a class="code hl_function" href="classg3dxml_1_1_x_m_l_i_o.html#a8b53bc63193205d2697d950a02ba8ad4">Error</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a56138e21b9561640fb0d39eda11e6213">   27</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classg3dxml_1_1_x_m_l_i_o.html#a56138e21b9561640fb0d39eda11e6213">SetStatus</a>(<span class="keywordtype">bool</span> isOK, <span class="keyword">const</span> std::string&amp; message = <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a33e2e87be99e77e202752336e4bd99aa">   30</a></span>        <span class="keywordtype">bool</span> <a class="code hl_variable" href="classg3dxml_1_1_x_m_l_i_o.html#a33e2e87be99e77e202752336e4bd99aa">isOK_</a>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classg3dxml_1_1_x_m_l_i_o.html#a17d4d6902a9471f51a9ab90716b49155">   31</a></span>        std::string <a class="code hl_variable" href="classg3dxml_1_1_x_m_l_i_o.html#a17d4d6902a9471f51a9ab90716b49155">errorMessage_</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    };</div>
</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>}</div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html">g3dxml::XMLIO</a></div><div class="ttdef"><b>Definition</b> XMLIO.h:18</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a17d4d6902a9471f51a9ab90716b49155"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a17d4d6902a9471f51a9ab90716b49155">g3dxml::XMLIO::errorMessage_</a></div><div class="ttdeci">std::string errorMessage_</div><div class="ttdef"><b>Definition</b> XMLIO.h:31</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a2aa9d1d66c6d34a09487e3858411b8b6"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a2aa9d1d66c6d34a09487e3858411b8b6">g3dxml::XMLIO::XMLIO</a></div><div class="ttdeci">XMLIO()</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a33e2e87be99e77e202752336e4bd99aa"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a33e2e87be99e77e202752336e4bd99aa">g3dxml::XMLIO::isOK_</a></div><div class="ttdeci">bool isOK_</div><div class="ttdef"><b>Definition</b> XMLIO.h:30</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a54dedd449b82b119b0ac5a0e9b63df79"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a54dedd449b82b119b0ac5a0e9b63df79">g3dxml::XMLIO::~XMLIO</a></div><div class="ttdeci">virtual ~XMLIO()</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a56138e21b9561640fb0d39eda11e6213"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a56138e21b9561640fb0d39eda11e6213">g3dxml::XMLIO::SetStatus</a></div><div class="ttdeci">void SetStatus(bool isOK, const std::string &amp;message=&quot;&quot;)</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a8b53bc63193205d2697d950a02ba8ad4"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a8b53bc63193205d2697d950a02ba8ad4">g3dxml::XMLIO::Error</a></div><div class="ttdeci">std::string Error() const</div></div>
<div class="ttc" id="aclassg3dxml_1_1_x_m_l_i_o_html_a90ebdf7ef7cec9abf1c1896f3fdd90d5"><div class="ttname"><a href="classg3dxml_1_1_x_m_l_i_o.html#a90ebdf7ef7cec9abf1c1896f3fdd90d5">g3dxml::XMLIO::IsOK</a></div><div class="ttdeci">bool IsOK() const</div></div>
<div class="ttc" id="anamespaceg3dxml_html"><div class="ttname"><a href="namespaceg3dxml.html">g3dxml</a></div><div class="ttdef"><b>Definition</b> MultiTIN.h:8</div></div>
<div class="ttc" id="anamespaceg3dxml_html_a0f69feabadae2b0ab142a46de5546871"><div class="ttname"><a href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871">g3dxml::SchemaVersion</a></div><div class="ttdeci">SchemaVersion</div><div class="ttdoc">Versions of Geo3DML XML schema.</div><div class="ttdef"><b>Definition</b> XMLIO.h:9</div></div>
<div class="ttc" id="anamespaceg3dxml_html_a0f69feabadae2b0ab142a46de5546871a1c163dc46984eec51637b0f133ba0847"><div class="ttname"><a href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871a1c163dc46984eec51637b0f133ba0847">g3dxml::Schema_Unknown</a></div><div class="ttdeci">@ Schema_Unknown</div><div class="ttdef"><b>Definition</b> XMLIO.h:10</div></div>
<div class="ttc" id="anamespaceg3dxml_html_a0f69feabadae2b0ab142a46de5546871a354fed69777c2a9d80a7326945eb9d25"><div class="ttname"><a href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871a354fed69777c2a9d80a7326945eb9d25">g3dxml::Schema_2_x</a></div><div class="ttdeci">@ Schema_2_x</div><div class="ttdoc">v2.x</div><div class="ttdef"><b>Definition</b> XMLIO.h:13</div></div>
<div class="ttc" id="anamespaceg3dxml_html_a0f69feabadae2b0ab142a46de5546871acf0ba27ae674848364bbfd739f16fd05"><div class="ttname"><a href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871acf0ba27ae674848364bbfd739f16fd05">g3dxml::Schema_1_0</a></div><div class="ttdeci">@ Schema_1_0</div><div class="ttdoc">v1.0，即中国地质调查局标准。</div><div class="ttdef"><b>Definition</b> XMLIO.h:11</div></div>
<div class="ttc" id="anamespaceg3dxml_html_a0f69feabadae2b0ab142a46de5546871ae9395ae97498af120a21c6d6627d8fe5"><div class="ttname"><a href="namespaceg3dxml.html#a0f69feabadae2b0ab142a46de5546871ae9395ae97498af120a21c6d6627d8fe5">g3dxml::Schema_2_0</a></div><div class="ttdeci">@ Schema_2_0</div><div class="ttdoc">v2.0，即中国地理信息协会标准。</div><div class="ttdef"><b>Definition</b> XMLIO.h:12</div></div>
<div class="ttc" id="anamespaceg3dxml_html_ab71d40d2b47228c7181464f6e6f69183"><div class="ttname"><a href="namespaceg3dxml.html#ab71d40d2b47228c7181464f6e6f69183">g3dxml::SchemaVersionToString</a></div><div class="ttdeci">std::string SchemaVersionToString(SchemaVersion v)</div></div>
<div class="ttc" id="anamespaceg3dxml_html_aef8547a5c327df7e176ca5f711ed2bad"><div class="ttname"><a href="namespaceg3dxml.html#aef8547a5c327df7e176ca5f711ed2bad">g3dxml::StringToSchemaVersion</a></div><div class="ttdeci">SchemaVersion StringToSchemaVersion(const std::string &amp;s)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
